package com.kaka.bus.engine.home.info.amountlist;

import com.kaka.bus.bean.HttpWrapper;
import com.kaka.bus.bean.OrderBean;
import com.kaka.bus.mvp.BasePresenter;
import com.kaka.bus.mvp.BaseView;

import java.util.List;

public interface AmountContract {
    interface View extends BaseView {
        void onError();

        void onResultStart(HttpWrapper<List<OrderBean>> o);

        void onResultLoadMore(HttpWrapper<List<OrderBean>> o);

        void refresh(HttpWrapper<List<OrderBean>> data);
    }

    interface Presenter extends BasePresenter<View> {

        void getAmountList(String userId, String token, int pageNum, int pageSize, String device, String version);

        void loadMore(String userId, String token, int page, int pageSize, String device, String version);


        void cancelRequest(String userId, String token, String borr_id);


    }

}
